package com.itheima.reggin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.itheima.reggin.entity.OrderDetail;
import com.itheima.reggin.entity.Report;
import com.itheima.reggin.mapper.OrderDetailMapper;
import com.itheima.reggin.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {
    @Autowired
    private OrderDetailMapper orderDetailMapper;

    @Override
    public Integer saleNums(Long setmealId) {
        return orderDetailMapper.saleNums(setmealId);

    }

    @Override
    public Integer saleNum(Long dishId) {
        return orderDetailMapper.saleNum(dishId);
    }


}
